<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>上传文件</title>
</head>
<body>
     <%
     Object obj=session.getAttribute("logged");
       if(obj==null||!obj.toString().equals("1")){
    	   out.println("<script>alert('请先登录！');window.location='login.jsp'</script>");
       }
     %>
    
    <center>
          <h2>文件上传</h2>
          <font color="red">
          <%=request.getAttribute("msg")==null?"":request.getAttribute("msg") %>
          </font>
          <form enctype="multipart/form-data" method="post" action="FileUploadServlet">
                            文件描述:<input type="text" name="text"><br/>
                            上传文件1:<input type="file" name="file1"><br/>
                            上传文件2:<input type="file" name="file2"><br/>
                   <input type="submit"  value="上传">    
          </form>                               
    </center>
</body>
</html>